<!DOCTYPE html>
<html>
<head>
	<meta http-equiv='Content-Type' content='text/html' charset='utf-8' / >
	<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0" >
	<link href="http://apps.bdimg.com/libs/bootstrap/3.3.4/css/bootstrap.min.css" rel="stylesheet">
	<script src="http://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
	{% block head %}{% endblock %}	
</head>
<body>
	<header style="">
	<nav class="navbar navbar-default col-lg-10 col-lg-offset-1" role="navigation">
		<div class="navbar-header col-lg-offset-2 col-md-offset-1 col-sm-offset-1">
			<span class="navbar-brand">That is it</span>
			<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#myNav">
				<span class="icon-bar"></span>
				<span class="icon-bar"></span>
				<span class="icon-bar"></span>
			</button>
		</div>
		<div class="navbar-collapse collapse" id="myNav" ng-controller="navCtrl">
			<ul class="nav navbar-nav nav-pills">
				<li><a href="/">Home</a></li>	
				<li><a href="/list">Articles</a></li>	
				<li class="dropdown">
					<a class="dropdown-toggle" data-toggle="dropdown" href="/list">
						Tags	
						<b class="caret"></b>
					</a>
					<ul class="dropdown-menu">
						{% for nav in navs %}
							{% if nav!='唠嗑' %}
								<li><a href="/list/{{nav}}">{{nav}}</a></li>	
							{% endif %}
						{% endfor %}
						<li class="divider"></li>
						<li><a href="/list/唠嗑">唠嗑</a></li>
					</ul>
				</li>
				<li><a href="/profile">Profile</a></li>	
				<li><a href="/webSocket"><span class="badge pull-right">2</span>Chat</a></li>
				<li class="hidden-xs"><a href="/contact">Contact</a></li>	
			</ul>
		</div>

	</nav>
	<style>
		#myNav ul li:hover>a{
			color:#555;
			background-color:#e7e7e7;
		}
	</style>
	<div class="col-lg-1 visible-lg"></div>
	</header>

	<!--<h1 class="container">Hello {% block title%}{%endblock%}</h1>-->
	<div class="container">
		{% block content %}{%endblock%}
	</div>

	<audio id="audNotif" style="display:none;">
		<source src="/audio/notif.mp3" type="audio/mpeg">
	</audio>

	<div class="modal fade" id="loginModal" tabindex="-1" role="dialog" aria-labelledby="loginModalLabel" aria-hidden="true">
		<div class="modal-dialog">
			<div class="modal-content">
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
					<h4 class="modal-title" id="loginModalLabel">
						you need a name	
					</h4>
				</div>
				<div class="modal-body">
					<label>name:</label>
					<input id="loginName" class="form-control"  />
				</div>
				<div class="modal-footer">
					<button type="button" class="btn btn-default" data-dismiss="modal">close</button>
					<button type="button" id="btnLog" class="btn btn-primary">submit</button>
				</div>
		</div>
		</div>
	</div>



	<script src="http://apps.bdimg.com/libs/bootstrap/3.3.4/js/bootstrap.min.js"></script>
</body>
</html>
